package cn.tedu.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired //注意:此处使用了自动装配的注解
    private UserMapper userMapper;

    @Autowired
    private SubUserMapper mapper;

    public void reg(){
        System.out.println("UserController.reg()>>控制器即将执行用户注册...");
        userMapper.insert();
        mapper.ser();
    }
}
